home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / AIncludes / ROMEqu.a < prev    next >
Encoding:
Text File  |  1993-11-30  |  6.9 KB  |  185 lines  |  [TEXT/MPS ]

  1. ;    File:        ROMEqu.a
  2. ;
  3. ;    Copyright:    © 1983-1993 by Apple Computer, Inc.
  4. ;                All rights reserved.
  5. ;
  6. ;    Version:    System 7.1 for ETO #11
  7. ;    Created:    Tuesday, March 30, 1993 18:00
  8. ;
  9. ;___________________________________________________________________________
  10.  
  11.     IF &TYPE('__INCLUDINGROMEQU__') = 'UNDEFINED' THEN
  12. __INCLUDINGROMEQU__    SET    1
  13.  
  14. ;*********************************************************************
  15. ; Constants
  16. ;*********************************************************************
  17.  
  18. ;=====================================================================
  19. ;Misc.
  20. ;=====================================================================
  21. defaultTO         EQU         100
  22. ;=====================================================================
  23. ;Format-Header
  24. ;=====================================================================
  25. appleFormat       EQU         1                         ;Format of Declaration Data (IEEE will assign real value)
  26. romRevision       EQU         1                         ;First ROM revision.
  27. romRevRange       EQU         9                         ;Revision of Declaration Data Format [1..9]
  28. testPattern       EQU         1519594439                ;FHeader long word test pattern
  29. ;=====================================================================
  30. ;sExec constants 
  31. ;=====================================================================
  32. sExec2            EQU         2                         ;Revision of header {For sExec}.
  33. ;=====================================================================
  34. ;sExec constants 
  35. ;=====================================================================
  36. sCPU68000         EQU         1                         ;CPU type = 68000
  37. sCPU68020         EQU         2                         ;CPU type = 68020
  38. sCPU68030         EQU         3                         ;CPU type = 68030            <1.3>
  39. sCPU68040        EQU            4                        ;CPU type = 68040            <1.4>
  40.  
  41. ;=====================================================================
  42. ;sDRVR directory constants 
  43. ;=====================================================================
  44. sMacOS68000       EQU         1                         ;Mac OS, CPU type = 68000
  45. sMacOS68020       EQU         2                         ;Mac OS, CPU type = 68020
  46. sMacOS68030        EQU            3                        ;Mac OS, CPU type = 68030    <1.3>
  47. sMacOS68040        EQU            4                        ;Mac OS, CPU type = 68040    <1.4>
  48.  
  49.  
  50. ;=====================================================================
  51. ;sResource types 
  52. ;=====================================================================
  53.  
  54. ;<Category>
  55. catBoard          EQU         $0001                    ;        <1.3>
  56. catTest           EQU         $0002                    ;        <1.3>
  57. catDisplay        EQU         $0003                    ;        <1.3>
  58. catNetwork        EQU         $0004                    ;        <1.3>
  59. CatCPU            EQU            $000A                    ;        <1.3>
  60.  
  61. ;<Type>
  62. typBoard          EQU         $0000                    ;        <1.3>                    
  63. typApple          EQU         $0001                    ;        <1.3>
  64. typVideo          EQU         $0001                    ;        <1.3>
  65. typEtherNet       EQU         $0001                    ;        <1.3>
  66. TypAppleII      EQU         $0015                    ;        <12>
  67.  
  68.  
  69. Typ68000        EQU            $0002                    ;        <1.3>    
  70. Typ68020        EQU            $0003                    ;        <1.3>
  71. Typ68030        EQU            $0004                    ;        <1.3>
  72. Typ68040        EQU            $0005                    ;        <1.4>
  73.  
  74. ;Driver Interface : <id.SW>
  75. DrSwMacCPU        EQU            0                        ;         <1.3>
  76. drSwApple         EQU         1                        ;         <1.3>
  77. DrSwAppleIIe    EQU          $0001                    ;        <12>
  78.  
  79.  
  80. ;Driver Interface : <id.SW><id.WH>
  81. drHwTFB           EQU         1
  82. drHwJMFB        EQU            25                        ; 4•8/8•24 ROM Support <11> rb
  83. drHw3Com          EQU         1
  84. drHwBSC           EQU         3
  85.  
  86. ; other drHw id's for built-in functions
  87.  
  88. DrHwSonic        EQU        $0110                        ; <12>
  89. DrHwDblExp        EQU      $0001                        ; <12>
  90.  
  91.  
  92. ;=====================================================================
  93. ;Declaration ROM Id's
  94. ;=====================================================================
  95. ;---------------------------------------------------------------------
  96. ; Misc
  97. ;---------------------------------------------------------------------
  98. endOfList         EQU         255                       ;End of list
  99.  
  100.  
  101. ;---------------------------------------------------------------------
  102. ; sResource List. Category: All
  103. ;---------------------------------------------------------------------
  104. ;The following Id's are common to all sResources.
  105. sRsrcType         EQU         1                         ;Type of sResource
  106. sRsrcName         EQU         2                         ;Name of sResource
  107. sRsrcIcon         EQU         3                         ;Icon
  108. sRsrcDrvrDir      EQU         4                         ;Driver directory
  109. sRsrcLoadRec      EQU         5                         ;Load record
  110. sRsrcBootRec      EQU         6                         ;sBoot record
  111. sRsrcFlags        EQU         7                         ;sResource Flags
  112. sRsrcHWDevId      EQU         8                         ;Hardware Device Id
  113. minorBaseOS       EQU         10                        ;Offset to base of sResource in minor space.
  114. minorLength       EQU         11
  115. majorBaseOS       EQU         12                        ;Offset to base of sResource in Major space
  116. majorLength       EQU         13
  117. sRsrcTest        EQU            14                        ; sBlock diagnostic code
  118. sRsrcCIcon        EQU            15                        ; CQD color icon
  119. sRsrcIcl8        EQU            16                        ; 'icl8' 8-bit color icon data
  120. sRsrcIcl4        EQU            17                        ; 'icl4' 4-bit color icon data
  121.  
  122. sGammaDir        EQU            64                        ; spID for gamma directory
  123. sRsrcVidNames    EQU            65                        ; spID for video name directory    
  124.  
  125. ;---------------------------------------------------------------------
  126. ; sResource List. Category: Board
  127. ;---------------------------------------------------------------------
  128. ;The following Id's are common to all Board sResources.
  129. boardId           EQU         32                        ;Board Id
  130. pRAMInitData      EQU         33                        ;sPRAM init data
  131. primaryInit       EQU         34                        ;Primary init record 
  132. timeOutConst      EQU         35                        ;Time Out constant. 
  133. vendorInfo        EQU         36                        ;Vendor information List {See Vendor List, below}
  134. boardFlags        EQU         37                        ;Board Flags
  135. secondaryInit    EQU            38                        ;Secondary init record                <1.1>    
  136.  
  137. ;---------------------------------------------------------------------
  138. ; sResource List. Category: Board
  139. ;---------------------------------------------------------------------
  140. ;The following Id's are associated with all CPU sResources.
  141. MajRAMSp        EQU            129                        ;ID of Major RAM space.
  142. MinROMSp        EQU            130                        ;ID of Minor ROM space.
  143.  
  144.  
  145. ;---------------------------------------------------------------------
  146. ;Vendor List 
  147. ;---------------------------------------------------------------------
  148. ;The following Id's are associated with the VendorInfo id
  149. vendorId          EQU         1                         ;Vendor Id
  150. serialNum         EQU         2                         ;Serial number
  151. revLevel          EQU         3                         ;Revision level
  152. partNum           EQU         4                         ;Part number
  153. Date            EQU            5                        ;ID of date field in vendor info list.
  154.  
  155.  
  156. ;---------------------------------------------------------------------
  157. ; sResource List. Category_Type: Test_One
  158. ;---------------------------------------------------------------------
  159. ;The following Id's are common to all Test_One_x sResources.
  160. testByte          EQU         32                        ;Test byte.
  161. testWord          EQU         33                        ;Test Word.
  162. testLong          EQU         34                        ;Test Long.
  163. testString        EQU         35                        ;Test String.
  164.  
  165. ;*************************************************************
  166. ;Macros
  167. ;*************************************************************
  168. ;=============================================================
  169. ; Offset List Entry
  170. ;=============================================================
  171.                   MACRO
  172.                   OSLstEntry  &Id,&Offset
  173.                   DC.L        (&Id<<24)++((&Offset-*)**$00FFFFFF)
  174.                   ENDM
  175.  
  176.  
  177. ;=============================================================
  178. ; Data List Entry
  179. ;=============================================================
  180.                   MACRO
  181.                   DatLstEntry &Id,&Data
  182.                   DC.L        (&Id<<24)+&Data
  183.                   ENDM
  184.  
  185.     ENDIF    ; ...already included